import { pureGet, post, get } from "../common/ajax"

export const scanPaths = () => pureGet('/api/paths')

export const scanLogs = () => pureGet('/api/logs')

export const articles = (keywords) =>
    get('/api/articles_all', {
        keywords: keywords
    })

export const delPath = (id) =>
    post("/api/del_path", {
        id: id
    })

export const addPath = (path) =>
    post("/api/set_path", {
        path: path
    })


export const itSource = (paths) =>
    post("/api/import", {
        paths: paths
    })
